libxl: make it possible to explicitly specify default sched params
authorIan Campbell <ian.campbell@citrix.com>
Fri, 1 Jun 2012 11:06:20 +0000 (12:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 1 Jun 2012 11:06:20 +0000 (12:06 +0100)
commit6d45f5d903b673d600b7c2f26b19bd29000261c4
tree62bf956549d4065c87da30bcfc57ee6ef8047f75
parent33a1df8e769b9a23126e3a02e6e8078f0b85bbf8
libxl: make it possible to explicitly specify default sched params

To do so we define a discriminating value which is never a valid real value for
each parameter.

While there:

 - removed libxl_sched_*_domain in favour of libxl_domain_sched_params.
 - use this new functionality for the various xl commands which set sched
   parameters, which saves an explicit read-modify-write in xl.
 - removed call of xc_domain_getinfolist from a few functions which weren't
   actually using the result (looks like a cut and paste error)
 - fix xl which was setting period for a variety of different config keys.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_types.idl
tools/libxl/xl_cmdimpl.c